package com.jk.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.MongoId;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/*1* @Return *
2* @Author: lxb
3* @Description:
4* @Date: 2022/11/3 10:57
5 * @param null 
6: MongoDB 进货表
**/

@Data
@Document(value = "purRecord")
public class PurRecord {

    @MongoId
    private String buyProId;



    //产品编号
    private Integer proNum;
    //产品名称
    private String proname;
    //产品单价
    private Double price;
    //进货数量
    private Integer inCount;
    //进货总价
    private Double totalPrice;
    //进货时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd ", timezone = "GMT+8")
    private String purDate;

    private Integer surpluscount;

}
